Note that the version number is a string. In some cases, it has more than one decimal point. It should never be dealt with as if it were a numeric value.
file.getVersion ("UserLand Frontier™")
» 3.0
Notes • Normally, only application files have versions.
• You can use file.getVersion to provide status information to the user or to check for compatibility. (As versions change, an application’s IAC verbs might change or grow.)
• For a longer version string, use file.getFullVersion.